fixed issue on index() module