fixed show fragment bugs.