Fixed the setwd() issue