Fixed a bug in uniform array setter