Fixed bug when trying to refresh assignments or students page.