minor fix on slicing for predit method
Merging release into master.