Bugfix example for issue 2150

#2150