some fixes for relative location