Fix Netbeans error