Fixed bug in Jeppas code