Fixes bug where using save directly results in all NULL values.