Fixed empty fragment bug