fix rewriting params by composer