Fixed weird netbeans bug