Remove space before .then function.