fixing issue with classes pages