Prevent module not defined error