fixing content loop