fixed bug in value