renderer test 2 failed, fixing

fixing command rebuild algorithm