Fix for page redirect