Fix some weird action.

Hi,

I got some trouble with your plugin. 

Whenever I try to navigate between blank groups, It doen't work smoothly.

so I fixed it myself.

cheers.