fixed masterDetail bug (if not loaded originally)