Fix for safari 

Fix added for safari and incorrect loading of portfolio page