Resolved error for simulator 5.1