fix overwrite defaults bug