Fixed issue with method not in scope