fix get mat