Fixes in fragment management.