Custom hardware cursor doesn't work in packaged project

Do you have any idea about why cursors sometimes still perform the native styles when the game loads? My custom cursor shows after I switch into some other windows and refocus the game windows.