This "might" be the problem, since a 40b does have a good bit of height to it, try getting a raised platform that will get the basking spot about midway up the tank so the basking light doesn't have as far to reach a surface. Thats how mine is, the raised platform is about midway up.