promises table length fix