--- a/src/mse.c
+++ b/src/mse.c
@@ -153,8 +153,8 @@
   keypad(stdscr,TRUE);
   raw();
   /*  debug = fopen("./debug","w");*/
-  __Cols=Display->_maxx;
-  __Rows=Display->_maxy;
+  __Cols=getmaxx(Display)-1;
+  __Rows=getmaxy(Display)-1;
   if(__Cols == 0 || __Rows == 0){
     ajDebug("ERROR:Cols = %d Rows = %d\n",__Cols,__Rows);
     __Cols =80;
