If the quality parameter is not a number, it should be treated as 1.0