bug creating purchase order