Well, if it's a bug, i ain't sure.
Changing your name won't actually give your cash (Also vehicle) back.
If you really wants changename, ask an admin or atleast advert them.
If you don't, they could think it's multi-accounting, resulting in a ban.
Regarding the bug itself, i don't know. It nevers happened to me.