Fix custom params bug