Default value not working consistently