Fixed the errors highlighted by Gábor Szárnyas

Signed-off-by: Attila Fodor <attila.fodor.89@gmail.com>