Fix contentsArray being null