Fix AlwaysOnTop not working after restarting app