debug

add intval to max attribute