Learn funcation bug fixed