Fixed last_modified handling