added safety check in draw rho lines()