workaround for compiler error in hair module