fixed if statement for feature enabled