minor bugfix of bug when uploading invalid event image