Fixed problem with lazy threshold
Fixed: it was generating a surface when user cancels the operation