forgot to reset some variables, fixed that just now