Fix the bug of showing incorrect topic writer's id
Improve the function MySmartFunctions::getLastLocation() to get an accurate result