Fixed a bug on building point computation