Fixing code as Murilo suggested