bug fixing for payment