fixed doublerender error - sloppy fix