fixed a signal/slot bug