bugfix for integration with angular