Bugfix: Add missing if.