Stopped bug if file isn't uploaded