second try at predict() fix, closes #143