Issue with context.complete()