Fixed a seg fault with require