fix a bug in master page dot php