fixes some positioning issues