Added a check for zero site coordinates