fixed issue caused by changing javascript function name for the block field type