invalid string error with version 4.x.x