Bug fixes: added rendering safeguard and fixed math error in filterCrime.