fixed a few bugs that occured when i migrated to the live server