fixed some errors related to server pages