Bugfixes for pyle