fixed "this" in factory if under strict mode