fixed boolean check.  I thought it was supposed to get autocast into a real bool, but it didnt