fixed bug with set