Strange inheritance bug fix.