fixed up drawBorder debug border for caching