fixed bug in last modification