Fix for doLine