Fixes crasher