- fixed bug with returning value as json