Fixed working directory and noObjects vs maxObjects conflicts