Fixes an error in require