Little changes in log and fix some gallery's bugs