small bugfix (always declare local variables)