fix bug of compose