fixed problem with strict mode