Trying to fix overflow problem on snippet