fix a strange ruby scoping bug