Corrected center from 1 based to 0 based