Fixed issue with method not executing