bug fix on panels