small fixes for fragment attach states