fixed small bugs on outputing maya