fixing post last_record