fixing bug when edit from dummy model