Fix netbeans errors