More YUI compat fixes