Fix line miss behaviour