Nice I was experiencing this issue a little bit and tried something like this https://gist.github.com/gaye/8048624 earlier today. Your change looks good though.