bug fix to pass tests.test_common