getting a bug when trying to restart app