Fixing table frame derive function