Tiny bug fix for exception on startup