Fix access to attribute

Signed-off-by: Michal Čihař <michal@cihar.com>
Remove unused import

Signed-off-by: Michal Čihař <michal@cihar.com>
Remove unused import

Signed-off-by: Michal Čihař <michal@cihar.com>