Fixes object boolean value saving as a string instead of an int