--- a/input.c
+++ b/input.c
@@ -1436,7 +1436,7 @@
 		case 106:
 		case 107:
 			gc->flags &= ~GRID_FLAG_BG256;
-			gc->bg = n;
+			gc->bg = n - 10;
 			break;
 		}
 	}