fixed bug assignment problem