Prevent passing of 0 for scaling parameters which causes errors.