Bugfix for complex variables