Fixes a bug, if Mootools and jQuery are enabled