Fixed generations errors of gem