fixed bugs in gson's parser