fix bug https://trello.com/c/3SUAXpg5/27-js

Signed-off-by: Alexandr <yakovlev@primepix.ru>