fixed origin check