Fixing issue which prevented multithreaded execution in contour line app