Fixed critical bug in realizations method.