fix bug using ms instead of s