fixed an error for making a two class prediction