fixed odd occurrences of a cursor returned by the system being NULL. wtf ukas