fixed the problem of not catching the exception
got the line rendered!!