hide empty thumbs and fix a bug