fix division by zero bug: screen.c:7679