fixing panel emit issue