Fixed bug when no params provided