Fixing conditional in sandbox