Fixed mask bug

Mask was not getting transformed applied