Fix basePath configuration bug