Possible fix for #14013

A possible fix for #14013.
Demo: http://jsfiddle.net/4pLdD/

CC: @fat for review