bug fixes in admin