fix bugs;now anysource seems working fine