handle empty events table