fixed present/edit bug