Fixes to last_modified bug.