Fix bug in interface