Fixed fragments from being put on the stack