fixed ebug in netbeans