Fix bug wrong apply usage