Fixed bug where prefix would not match due to parameters in it