Corrected the bug related to conversion of ms to seconds