fix wrong logic for BASE_URL - v0.3.2