authorise bug fixed