ref check fix 89263e2334d5e90afe04ad7988ad28aeea84e983

Signed-off-by: Oleg Verych <olecom@gmail.com>