replication of angulartics issue #482