Fixed error for modVal is number