add another missing if condition