fixed bug in Deigs