fixing small mesh output bug