patch for angular 1.3 support