Fixed #3525, error 12 in master-detail demo.