Changed some bugs in native functions
Trying to get this simple file to work, segmentation fault :/