fix building x and y coordinates so they aren't affected by resources panel