fixed a bug with auto-src detection