fix bug (missing $em in controller)