Fixed a bug in dragRel().