centre variable bug fixed