fixed cast-problem
removed unnecessary attribute