Fixed one more logic bug. Verified every solution.