Fix bug in eps function