Fix imports and variable names

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