fixed bug in xlim properly
fixed bugs