Fixed reverse direction bug