fixed building id bug