Added static_cast to hshd.current_height