Fix creation object without class.