Fix magma hibernate