fixed bug in posting data using a CommonGateway