One last error, works almost completely

works once, then crashes. one last error