Fix bug that was comparing incorrect mass values