BUG: check for mask when initialization is used