Wipe the buffer directly before echoing the result. Updating the post info could cause output in rare cases, which would disturb our returned result.