bug fix by resolving baseDir