fixed several issues of different render settings when mask and/or label are present