Fix deprecated method
Fix weird behaviour by properly initializing info