fixed an example for custom attribute