Fixed browser freeze when making relation