Fixed scripts for admin