fix hanging line on method call