Fixed bugs segmentation (save_segmentation, verify_node_type, session_verify) + Retrieve last mask