fixed error with app crashing when compiled on laptop