bug fix with onShow