Change initialisation order to ensure that consistency exceptions are not thrown

This also fixes compatibility with iOS8
Merge pull request #5 from 7sharp9/consistancy

Change initialisation order to ensure that consistency exceptions are not thrown