MOTM-1068: Fixes typos and missing array statment