Fix code which do not work in strict mode