Fix bug in marginalias