revert fixing (to exec at timing "document_start") and fix calc logic of center posiotion