fixed intial bug in selection after revised render structure