Fixed return error in GMI