Fixes the error (issue #23) when uploading a layer.