(Bluefox) fix error in MegaD driver.