solves issue with app instance