Fixed a bug where basePath was being changed to resourcePath