bug fix with mask hiding on the barrier grid animation