Base on correct class

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