fixed issue in getData