fix bug in rendering previous commit