There is nothing wrong with talking to men and women the same, so long as you are respectful and considerate. If you are finding it a problem then you could change your way you approach people; use their body language and reactions as a guide to whether you’re being offensive or not. Or, perhaps ask a friend whether it is an issue? Make sure you ask someone whom you can trust to be honest with you. They could maybe give you feedback, point you in the right direction or, even give you a nudge when you slip back into old habits.