Fixed a truck-load of bugs regarding qmg422