Fix a bug that url prefix doesn't work.