bug fix max button in popup