Resolving bug