[minor] Better compiler logic