Fixes issue with gist not applying to scope properly