Error corrections for internal storage