Fixed mod validation bugs.