Cleaned up but error when no checkbox selected