Fixed bug regarding the status modification, when submission tasks finish