bug fixing for SPCA presentation