Fixed active panel bug. Fixes #153.
Merge pull request #155 from tsherif/active-panel

Fixed active panel bug. Fixes #153.