Made  label coordinates more robust