Fixed nested class not working.