Fixes error in dialogAttributes