fixed bug when viewing admin