Fix for issue 885

Variable rename fixes issue