fixes #1503

fixes #1503