horrible 404 fix and fixed other errors