fixed a bug that was causing a crash

extra code that I think was going to be added but then I decided I
didnt' want to add.