Fix for  error in iPhone