fix a bug that lock screen is not presented.