Fixing issue with X/Y coord outputs