Fixed bug if no hash params is set