bugfix for complex data