fixed bug in netbeans interface