Xrf fit

How are you dealing with edge effects?