Lately I noticed that every time I try to hug a girl, she sticks out her hand like if it was supposed to be a handshake. I know it has something to do with my body language, so I need tips on how to correct that. Any suggestions?

edit this is a friendly greeting with girls I've already met.