compare empty params bug fixed