fix bug that would prevent multiple show/hide using API
1.0.0