compute height is bug-cleaned