Fixing some thumbnail modal issues