fix deleting with empty app