fixed bug with table view and layout engine