fix in validation of hidden lines