creating first element bad access fix