Fixed bug in getXXXData(..) methods.