Purchase form bug fix