fixes bug with attributes check