Fixed bug where non authorised users would recieve an error when viewing an algorthm