fixed bug with values