fixes #3776
Merge pull request #3777 from bilalyasar/fail

fixes #3776