Avoid undefined offset notice