fix exception in indent layout