Fix battery notify compile issue