fixing the bug, error http 500 for Rest.Rest Plugin