fix #610

Fixes https://github.com/yui/yui3/issues/610