Hopefully fixed a crash.