Fix error messages. Get gallery working.