fixed compatibility issue with mootool