fixed bug preventing ray intersection with compound bodies