fix prediction pattern