Various bugfixing in directed mutations.