fix cursor issue
added check for createFragment