fix for #217
fix for #217 with reworded reject reason.
Merge pull request #218 from garfield69/angular

fix for #217