Fix handling of boolean problems in upload