fixes #1327