This is completely normal. When people have a bad experience with something, it is human nature to apply that experience to similar contexts. This is how we learn. However, this instinctual process can lead to learning lessons that are not true, especially if the experience was traumatic. You can learn to overcome this, but it takes time.