Fixed duplicated ray and sphere classes