fixed broken height extension code