Fix netbeans erros