small fix for the serialize flag to store