Added some defensive code incase there's bad data