Fixed segfault when trying to configure ulong params with int function

(ubuntu 14.04 amd64)