Fixes snippet scope