fixes #577

#577