MKV Incorrect Chapters

Hi There,

after ripping a dvd and converting it to MKV using Handbrake the Chapter order is incorrect and/or missing numbers. Strange thing is that doing the same only to M4V the Chapters are OK.

What could be the cause of this?

Using the latest ATVFlash on ATV2.