Fixing an access exception when running in dev mode.