An explanation for my odd behavior