I'm guessing you're being deliberately obtuse here. You were completely free to do with your work as you please, and you "pleased" to sell your work to a company in exchange for some consideration. If you don't want IP transfer, or first-refusal fixed price patent transfer, then don't sign that employment contract. I had them negotiated out of my last agreement, and I'm free to spend my personal time creating whatever I want, knowing the rights to it will be owned entirely by me.