fix for minipg 0.4