That happened to me too, I even started a new game and made sure I didn't go into the small room but it still goes to the hidden ending.