weird behaviou on netbeans refactoring