fix illegal access on startup