Fixed crash when exceeding MAX_SAND limit + drawing issues just before