fix lock time error