fixed bug: instead of using bezier model ivar, local variable was used and when scope ended there where no initalized bezier model to use