bug fixing the transform tool