linting, fix bug with null attributes