Fixes nil attribute issue