fix getter magic method