Fix method not found error. forgot static