Fixed a few minor bugs in the realizations method.