fixed bug #633

fixed bug #633