fix error with invalid names