Fixed an awkward crash