diff --git a/Cocoa/Document.m b/Cocoa/Document.m
index 80da097..37000e0 100644
--- a/Cocoa/Document.m
+++ b/Cocoa/Document.m
@@ -1870,9 +1870,9 @@ static unsigned *multiplication_table_for_frequency(unsigned frequency)
height:oamHeight
scale:16.0/oamHeight];
case 1:
- return @((unsigned)oamInfo[row].x - 8);
+ return @((signed)((unsigned)oamInfo[row].x - 8));
case 2:
- return @((unsigned)oamInfo[row].y - 16);
+ return @((signed)((unsigned)oamInfo[row].y - 16));
case 3:
return [NSString stringWithFormat:@"$%02x", oamInfo[row].tile];
case 4:
diff --git a/Cocoa/Document.xib b/Cocoa/Document.xib
index 4c98007..2787aa3 100644
--- a/Cocoa/Document.xib
+++ b/Cocoa/Document.xib
@@ -536,7 +536,7 @@
-
+