center issues fixed

bug
Merge pull request #347 from safiyu/centers

fixed issues #321, #322, #324, #336, #337