Fixed a bug where when you press r anywhere other than ingame, everything crashes.