Fix error when user get back to application