Fixed ruby compiling order