Fixed a bug in updateR, was checking time instead of height