fixed error in parsing folder end token