fix a type error in admin works page