Fixes an issue with storing/loading boolean