Fixed issue of EnableMessage
Moved the config function to the init function