Q.when should be Q.all