BUG: layoutModified is fired even if layout is not modified. Check layout changed before executing code.