You got screwed, it happens. Just take your licks and learn from it. Be glad it was only a $500 mistake and not $5000, it happens to the best of us. Use this experience and learn from it so you don't make the same mistake again. Your never going to learn anything unless you make mistakes, this just happens to one of them, and yes it was an expensive mistake, but it could always been worse.