Fixed problems in FunctionEditor causing exceptions when running a Scene
Merge pull request #1 from SergioSoto/master

Fixed problems in FunctionEditor causing exceptions when running a Scene