fixed the error with check point script