fix warnings in ios6