fixed relative bugs