Fix some bug in admin panel