Fixed error in collision mask generation.