fix for entering from background