minor fix on slicing for predit method