Fixing a bug in uploads related to alerts and importing