Fixed ClassCastException in reggie