fixing coffee bug