solve the timestamp error