fix throw on require component