fixing method inlining bug