fixed a bug with title not being assigned