fixing bugs on payment gateway jsps