Fix to stop thing from crashing