Solved problem when DISPLAY is undefined.