fix complex error (second try)