line equation fix in path worker