Fixed an error with string coersion