Fixed bug in edit event phases, fixed bug in edit user