Fixed an error message in expander