Error Fix (variable declarations)

A few dangling declarations that were left out.