Prev version segfaults, this should be fixed now

Prev version had a "break;" accidentally deleted, causing segfaults in certain cases