Fixed bug with fragment