Fixing syscalls, step by step