Error: Conversion from string "midway" to type 'Integer' is not valid.