update composer reference and fixed bug