Fixing Sandbox creation problem

Hi @ticoann, this patch  fixes issue #5043 please review and pull

Cheers
Alex