fix some bugs with set uniform in object drawing function