Fixed bug with wrong checkbox setting things.