Fixed errors that came up with uploads