Fix error_on_uninitialized condition