Fixed a problem with fx variables