fix uniform bug