fixed exit from app