refactoring line offset displaced bug fix