fixed bug with default value replacing