Fixed a bug in fn_scidbf