fix if begin clause