Fixed bad Angular.js check