Fix few bugs
add IM_AWAKE