fixed bug with code default value