add fix proposed in https://github.com/yui/pure/issues/41#issuecomment-22147419