layout can be a String, so we should have correct handling this case and don't try to call undefined method String#call