fixing the agree checkbox