fix nil prob with instance hash