Fixed "Undefined offset: 5"