minor corrections to AMPDs converter