fix for sublime text 3, works also on sublime text 2