fixing a bug with then chaining