fix false attribute value for compile macro