fixed extraction of scalar cubes