fixed issue in flexpath_close with dimensions passed in via hard-coded values.