trying a fix for an error

Couldn’t recreate error but changing a variable type to try a possible
workaround.