Fixed most of the reference problems on the webserver side.