Fix generates decorator