This is something that has bugged me for a while. What happens if you are in remand for a significant period of time, and are later found not-guilty? Or if prosecution withdraw the charges?
The issue is discussed HERE, and a lot of the comments seem to be blaming everyone from the government, to the solicitors, to the judges. One commenter even suggested that they wouldn't be arrested if they were innocent!
There are really very few options. If you can show that the police should NOT have locked you up, you might have a civil-law case for false-imprisonment, but other than that, there isn't much you can do.
Any suggestions to fix this? Forward them to the attorney-general, the government, the opposition, and the commissioner for police. Maybe someone will actually get something useful done.
Dissatisfied and bitter? Me?