fix supdate() to be able to handle "null" properly