mask projection bug fixing