fix for lockscreen rotation bug