(hopefully) fixed unreachable statement error