fixed #706 : removed .then line from code