fixed rendering issues with casting table