fixed a bug preventing URL parameters from being passed