Fixed an issue with the base adapter snippet