Fix error undefined method in programmes.