I understand the futility of getting locked into a oneitis situation, and yet I still find myself in something like it.

I saw a girl I was interested in and approached successfully. A bit of chatting back and forth and I find myself reverting back to old ways. How can I avoid this? I'd like to go out with her but maintain a good frame despite the aforementioned issues. How should I proceed?