Fixing type bug: should be a symbol instead of string