small fix to save memory