Fixed check function in non-strict mode.