Fixed issues #19

Signed-off-by: Laentir Valetov <laex@bk.ru>