fixed a bug of showing monitor