Revert "bug patch"

This reverts commit a3355e686b94a3a711953c494688fab3e9388566.