fix for mask not adding