fixed warnings for ios7