fix MooTools compatibility bug