Solved the 'black dots' problem, it was due to the tangent points!