resolved a bug in format effect