I've done that before too, back when i used a direct access broker. I clicked sell instead of sell short. I made a gain, but end of the day, they took the gain away from me and the SEC gave me a 25 dollar fine on top of it.
Funny though that when you get a loss, they dont reimburse you.