Fixed compile errors of M5. fixed #1