We point out a loophole in the derivation of the Bell inequalities in the form proposed by Clauser, Horne, Shimony and Holt (CHSH). In this derivation it is assumed that statistical independence is a necessary consequence of locality, but this is not a logical necessity.