Fix out-of-range lineno when reloading the status view