Generate height of corner table correctly