Fixing bugs.
Fix bugs with evenyts.