fix slice out of bounds content type check