Fixing bug where last param becomes empty if contains 0