minor fix in transparency detection