Oops. Fix bug stopping admin panel working.