fix bug when compile with 6.1 SDK