Fixed adding emc bug

This will prevent an almost-near-impossible infinite emc bug.

This would probably be only possible if someone were to program this in, however it's still good to fix a bug.
Merge pull request #337 from master801/master

Fixed adding emc bug