Fixing access to the params after json decode