fixed show dismiss bugs