fixed exeption on main screen