Fixed bugs.

Some bugs regarding reading data using an authorization token were fixed.