Should fix refresh on layout. Fixes #19.