Fixed undefined offset error.