Fix for the subroutine linearise_field