Fix wrong if statement example