Fix if statement due dependency update