added offset parent that was undefined