Fixed bug that caused the create/edit/destroy functionality of sites to crash