Fixed persisting records via api.
Version 0.1b4.