Solving Lua issues problems in trainable package