fixed implicit conversion to string error