Updating normalisation and preventing from NaN