Can't buy Noble Temple bug

Im currently level 27 and i have four dragons that are level 15 and i want to level them up, but when i go to buy the required Noble Temple, for some reason its locked/unavailable and says building limit reached, but i checked my limit, i still have tons of space. Anybody know how to fix this? Would be greatly appreciated!