fix angular require bug