fix invalid function overloading thanks to issue #13 by nonsensery.