Supressed error and make access safer. Still don't know what the proper way to fix this is.