Fixed crash with the companies page as teacher