fix mistake for multiple call of generate sheet