fix some bugs in getData methods. #1