fixed syntax errors and bugs in the response property serialization