fixed typo + optimized overlay for empty slug