Fix optimize ore task