fixes for angular_1.3