Fixed bug with variable mI