rhist - small nil check fix