Fix detecting cursor.
Fix. Creating global PARAM_NULL/PARAM_DEFAULT