Fixed prediction mode. It doesn't crash now.