fixed overload error, and silenced a compile warning