[OE-3259] fixed errors in the admin controller.