Fix undefined $contain variable

Fix undefined $contain variable line 81.