Fixed two bool var assign issue