fixed global variables in coffee