Proper fix for -3 error