Fix a bug that without parameters it crashed