Fixes bug when uploading contracts