Fix bugs on restart puma