Core: fixed an error w setdata & Getdata

Signed-off-by: https://github.com/Infinity-420 <iceis2@hotmail.com>