Will no longer crash when no case is open