Fixed traps when using RVM