Hopefuly fixes crash