Fixed silly issue causing segfault