fixes on last BIT-429

Signed-off-by: Yasen Yankov <iasen.iankov@gmail.com>