Correct get_last_modified function

Hi, I have corrected get_last_modified function. please check.