Fix logic bug in picasa