Fix segfault on uniform update