changed dev->enable to dev->enabled. Sorry, I am the only one who can't speak English in the project.