Fixing a bug to allow parameters of type char to work correctly