IsWritable macro fix